package com.cpr.demo.model.mq;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;

/**
 * @author Chen Panrui
 * created at 2021/10/19 15:50
 */
@Getter
@Setter
@TableName("demo_multi_mq_report")
public class MqReport {

    @TableId(type = IdType.AUTO)
    private Long id;
    /**
     * 一个消息，一个id
     */
    @TableField("message_id")
    private String messageId;
    @TableField("queue_name")
    private String queueName;
    /**
     * sender、receiver
     */
    @TableField
    private String role;
    /**
     * 1=singleRedisMq, 2=multiRedisMq
     */
    @TableField("mq_type")
    private String mqType;
    /**
     * 发送/接收 的消息
     */
    @TableField
    private String message;
    /**
     * 发送/接收消息 的时间
     */
    @TableField("message_time")
    private Date messageTime;
    /**
     * 发送/接收消息 的节点
     */
    @TableField
    private String node;
    @TableField
    private String extend;
}
